<?php
class menu extends CWidget
{
    public $title = null;
   public $pid;
    public function init()
    {
    } 
    public function run()
    {
        $this->title = '页面标题';
        $this->render('showmenu', array('menu'=>Tool::getMenu( $this->pid),'pid'=>$this->pid));
    }
}